import request from '@/utils/request'

// 查询商户扩展信息列表
export function listExtend(query) {
  return request({
    url: '/merchant/extend/list',
    method: 'get',
    params: query
  })
}

// 查询商户扩展信息详细
export function getExtend(id) {
  return request({
    url: '/merchant/extend/' + id,
    method: 'get'
  })
}

// 新增商户扩展信息
export function addExtend(data) {
  return request({
    url: '/merchant/extend',
    method: 'post',
    data: data
  })
}

// 修改商户扩展信息
export function updateExtend(data) {
  return request({
    url: '/merchant/extend',
    method: 'put',
    data: data
  })
}

// 删除商户扩展信息
export function delExtend(id) {
  return request({
    url: '/merchant/extend/' + id,
    method: 'delete'
  })
}

// 导出商户扩展信息
export function exportExtend(query) {
  return request({
    url: '/merchant/extend/export',
    method: 'get',
    params: query
  })
}

// 查询商户扩展信息详细
export function getExtendByMerchantNo(merchantNo) {
  return request({
    url: '/merchant/extend/getInfoByMerchantNo/' + merchantNo,
    method: 'get'
  })
}